package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Zlfx generated by hbm2java
 */
@Entity
@Table(name = "zlfx")
public class Zlfx implements java.io.Serializable
{

    private Long id;
    private int version;
    private Jbqk jbqk;
    private String username;
    private String operation;
    private Date optdate;
    private long ny;
    private String zklx;
    private BigDecimal enysje;
    private BigDecimal enysbl;
    private BigDecimal yzenje;
    private BigDecimal yzenbl;
    private BigDecimal ynyxje;
    private BigDecimal ynyxbl;
    private BigDecimal hjje;
    private BigDecimal hjbl;
    private Short xh;

    public Zlfx()
    {
    }

    public Zlfx( Long id, long ny, String zklx )
    {
        this.id = id;
        this.ny = ny;
        this.zklx = zklx;
    }

    public Zlfx( Long id,
                 Jbqk jbqk,
                 String username,
                 String operation,
                 Date optdate,
                 long ny,
                 String zklx,
                 BigDecimal enysje,
                 BigDecimal enysbl,
                 BigDecimal yzenje,
                 BigDecimal yzenbl,
                 BigDecimal ynyxje,
                 BigDecimal ynyxbl,
                 BigDecimal hjje,
                 BigDecimal hjbl,
                 Short xh )
    {
        this.id = id;
        this.jbqk = jbqk;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.ny = ny;
        this.zklx = zklx;
        this.enysje = enysje;
        this.enysbl = enysbl;
        this.yzenje = yzenje;
        this.yzenbl = yzenbl;
        this.ynyxje = ynyxje;
        this.ynyxbl = ynyxbl;
        this.hjje = hjje;
        this.hjbl = hjbl;
        this.xh = xh;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "jbq_ID")
    public Jbqk getJbqk()
    {
        return this.jbqk;
    }

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "ny", nullable = false)
    public long getNy()
    {
        return this.ny;
    }

    public void setNy( long ny )
    {
        this.ny = ny;
    }

    @Column(name = "zklx", nullable = false, length = 50)
    public String getZklx()
    {
        return this.zklx;
    }

    public void setZklx( String zklx )
    {
        this.zklx = zklx;
    }

    @Column(name = "enysje", precision = 18)
    public BigDecimal getEnysje()
    {
        return this.enysje;
    }

    public void setEnysje( BigDecimal enysje )
    {
        this.enysje = enysje;
    }

    @Column(name = "enysbl", precision = 18)
    public BigDecimal getEnysbl()
    {
        return this.enysbl;
    }

    public void setEnysbl( BigDecimal enysbl )
    {
        this.enysbl = enysbl;
    }

    @Column(name = "yzenje", precision = 18)
    public BigDecimal getYzenje()
    {
        return this.yzenje;
    }

    public void setYzenje( BigDecimal yzenje )
    {
        this.yzenje = yzenje;
    }

    @Column(name = "yzenbl", precision = 18)
    public BigDecimal getYzenbl()
    {
        return this.yzenbl;
    }

    public void setYzenbl( BigDecimal yzenbl )
    {
        this.yzenbl = yzenbl;
    }

    @Column(name = "ynyxje", precision = 18)
    public BigDecimal getYnyxje()
    {
        return this.ynyxje;
    }

    public void setYnyxje( BigDecimal ynyxje )
    {
        this.ynyxje = ynyxje;
    }

    @Column(name = "ynyxbl", precision = 18)
    public BigDecimal getYnyxbl()
    {
        return this.ynyxbl;
    }

    public void setYnyxbl( BigDecimal ynyxbl )
    {
        this.ynyxbl = ynyxbl;
    }

    @Column(name = "hjje", precision = 18)
    public BigDecimal getHjje()
    {
        return this.hjje;
    }

    public void setHjje( BigDecimal hjje )
    {
        this.hjje = hjje;
    }

    @Column(name = "hjbl", precision = 18)
    public BigDecimal getHjbl()
    {
        return this.hjbl;
    }

    public void setHjbl( BigDecimal hjbl )
    {
        this.hjbl = hjbl;
    }

    @Column(name = "xh")
    public Short getXh()
    {
        return this.xh;
    }

    public void setXh( Short xh )
    {
        this.xh = xh;
    }

}
